package at.fhooe.im440.pandora.graphic;

import java.awt.Graphics2D;

import at.fhooe.im440.pandora.visuals.Circle;
import at.fhooe.im440.pandora.visuals.Stroke;
import at.fhooe.im440.pandora.visuals.Visual;

public class Clock extends GameGraphic {
	private int r;
	private float x;
	private float y;
	private Stroke stroke;
	
	public Clock(int r, float x, float y) {
		this.r = r;
		this.x = x;
		this.y = y;
		
		this.stroke = new Stroke(r, (int)x, (int)y);
		addVisual(new Circle(r, (int)x, (int)y));
		addVisual(stroke);
	}
	
	@Override
	public void draw(Graphics2D g) {
		for (Visual v : this.visuals) {
			v.draw(g);
		}
	}
	
	public void tick() {
		updateVisuals();
	}


	protected void updateVisuals(){
		this.stroke.update();
	}


}
